package org.example.stockdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Objects;

@Data
public class StockRank {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String code;
    private String name;
    private Double price;
    //涨跌额
    private Double changeValue;
    //涨跌幅(%)
    private Double changePercent;
    //涨速
    private Double speed;
    //主力流入
    private Double mainIn;
    //主力流出
    private Double mainOut;
    //主力净流入
    private Double mainNetIn;
    //5日涨幅
    private Double fiveDayChangePercent;
    //10日涨幅
    private Double tenDayChangePercent;
    //成交量(手)
    private Double volume;
    //成交额(万元)
    private Double amount;
    //排序方式
    private String sortType;
    //排序字段
    private String sortName;
    //排序号
    private Integer sortOrder;

    //创建时间
    private LocalDate createdAt;
    //更新时间
    private LocalDateTime updatedAt;

}